<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人消费信息系统——基本信息录入</title>
<link rel="stylesheet" href="/stuinfo/css/jquery-ui-1.8.13.custom.css">
<link rel="stylesheet" type="text/css" href="/coninfo/css/base.css">
<script type="text/javascript" src="/coninfo/js/jquery/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="/coninfo/js/jquery/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" src="/coninfo/js/jquery/jquery.ui.datepicker.js"></script>
<style type="text/css">
		body,td,th {
			font-size: 14px;
		}
	</style>
	<script type="text/javascript">
	$(function() {
		$("#datepicker").datepicker({
			changeMonth: true,
			changeYear: true
		});
	});

	function check(){
		if(document.conform.conName.value.trim()==""){
			alert("消费名称没有填写!");
			document.conform.conName.focus();
			return false;
		}
		if(document.conform.conClass.value.trim()==""){
			alert("消费种类没有选择!");
			document.conform.conName.focus();
			return false;
		}
		if(document.conform.time.value.trim()==""){
			alert("消费日期没有填写!");
			document.conform.conName.focus();
			return false;
		}
		if(document.conform.money.value.trim()==""){
			alert("消费金额没有填写!");
			document.conform.conName.focus();
			return false;
		}
	}
</script>

</head>
<body>
<div id="container">
	<div id="top">
		<!--Logo start -->
			<div id="logo"></div>
			<div id="info"> 
				<a href="/coninfo/jsp/Homepage.jsp">返回首页</a>
			</div>
		<!--logo end -->
    </div>
    <div id="content">
	    <div id="left">
			<%@ include file="Homepage1.jsp"%>
	    </div>
	 	<div id="maincontent">
	 	<p>&nbsp;</p>
			<form name="conform" action="inform.jsp" method="post" onSubmit="return check();"><table width="720">
			<tr><td width="300" align="right">请输入消费名称：</td><td width="420"><input type="text" name="conName" /></td></tr>
			<tr><td width="300" align="right">请输入消费种类：</td><td width="420"><input type="text" name="conClass" /></td></tr>
			<tr><td width="300" align="right">请输入消费日期：</td><td width="420"><input type="text" name="time" id="datepicker" /></td></tr>
			<tr><td width="300" align="right">请输入消费金额：</td><td width="420"><input type="text" name="money" /></td></tr>
			<tr><td width="300" align="right"><input type="submit" value="确定" class="btn" />
			</td><td width="420"><input type="reset" value="重 置" /></td></tr>
			</table></form>
		</div>  
    </div> 	
	<div id="footer">@copyright</div>
</div>
</body>
</html>
